import axios, {AxiosInstance, CreateAxiosDefaults} from "axios";

export function axiosFactory(config:  CreateAxiosDefaults<any> | undefined): AxiosInstance | null{
    const instance: AxiosInstance | null = axios.create(config);
    // 注册拦截器
    return instance;
}